extends Sprite

signal pos_change(me,newPos) #位置发生变化

export var pos = Vector2(1,1) setget set_pos

enum types {
	TYPE_A,
	TYPE_B,
	TYPE_C,
}


export(types) var ntype setget set_ntype

func set_ntype(value):
	match value:
		types.TYPE_A:
			texture = load("res://A.png")
		types.TYPE_B:
			texture = load("res://B.png")
		types.TYPE_C:
			texture = load("res://C.png")
	pass

func set_pos(newPos:Vector2):
	position = newPos * 100
	pass
